package com.compomics.multidentparser.model;

import java.util.List;


/**
 * This class holds the content of parsed ms/ms identifications algorithm output file.
 * 
 * @author Thilo Muth
 *
 */
public class Content {

    /**
	 * List of search engine hits.
	 */
	private List<SearchEngineHit> searchEngineHits;
	
	/**
	 * The file name.
	 */
	private String filename;
	
	/**
	 * Receives a list of search engine hits and the filename.
	 * @param searchEngineHits List of search engine hits.
	 * @param filename The filename.
	 */
	public Content(List<SearchEngineHit> searchEngineHits, String filename) {
		this.searchEngineHits = searchEngineHits;
		this.filename = filename;
	}

	/**
	 * Returns the search engine type.
	 * @return
	 */
	public SearchEngineType getSearchEngineType() {
		return searchEngineHits.get(0).getType();
	}
	
	/**
	 * Returns the search engine hits.
	 * @return The search engine hits.
	 */
	public List<SearchEngineHit> getSearchEngineHits() {
        return searchEngineHits;
    }

    /**
     * Returns the filename.
     * @return The filename.
     */
    public String getFilename() {
        return filename;
    }

	
}
